package org.myspringmvc.web.context;

import jakarta.servlet.ServletContext;
import org.myspringmvc.context.ApplicationContext;

/**
 * @Author 海晨忆
 * @Des web项目的上下文对象
 * @Date 2025/7/17 14:40
 */
public class WebApplicationContext extends ApplicationContext {
    private String springMvcConfigPath;
    private ServletContext servletContext;

    public WebApplicationContext(String springMvcConfigPath, ServletContext servletContext) {
        super(springMvcConfigPath);
        this.springMvcConfigPath = springMvcConfigPath;
        this.servletContext = servletContext;
    }

    public String getSpringMvcConfigPath() {
        return springMvcConfigPath;
    }

    public void setSpringMvcConfigPath(String springMvcConfigPath) {
        this.springMvcConfigPath = springMvcConfigPath;
    }

    public ServletContext getServletContext() {
        return servletContext;
    }

    public void setServletContext(ServletContext servletContext) {
        this.servletContext = servletContext;
    }
}
